home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C++
/
Applications
/
PICSee Dust 1.01
/
Quaternary Source
/
assert_mac.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-06-24
|
410b
|
23 lines
#include "assert_mac.h"
#ifndef NDEBUG
void _ASSERT(char *msg)
{
Str255 debugMsg;
short msgLength, i;
/* Step through and find length of c-string msg */
msgLength = 0;
while (msg[msgLength++] != 0) {}
/* Copy msg to pascal msg string */
for (i = 0; i < msgLength; i++)
debugMsg[i+1] = msg[i];
debugMsg[0] = msgLength;
/* Call debugger */
DebugStr(debugMsg);
} // END _Assert
#endif // NDEBUG